package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbWorkHandlerGenMapper;
import com.ruoyi.system.domain.TbWorkHandlerGen;
import com.ruoyi.system.service.ITbWorkHandlerGenService;

/**
 * 代码生成Service业务层处理
 * 
 * @author XiaoSiyuan
 * @date 2021-11-11
 */
@Service
public class TbWorkHandlerGenServiceImpl implements ITbWorkHandlerGenService 
{
    @Autowired
    private TbWorkHandlerGenMapper tbWorkHandlerGenMapper;

    /**
     * 查询代码生成
     * 
     * @param id 代码生成主键
     * @return 代码生成
     */
    @Override
    public TbWorkHandlerGen selectTbWorkHandlerGenById(String id)
    {
        return tbWorkHandlerGenMapper.selectTbWorkHandlerGenById(id);
    }

    /**
     * 查询代码生成列表
     * 
     * @param tbWorkHandlerGen 代码生成
     * @return 代码生成
     */
    @Override
    public List<TbWorkHandlerGen> selectTbWorkHandlerGenList(TbWorkHandlerGen tbWorkHandlerGen)
    {
        return tbWorkHandlerGenMapper.selectTbWorkHandlerGenList(tbWorkHandlerGen);
    }

    /**
     * 新增代码生成
     * 
     * @param tbWorkHandlerGen 代码生成
     * @return 结果
     */
    @Override
    public int insertTbWorkHandlerGen(TbWorkHandlerGen tbWorkHandlerGen)
    {
        return tbWorkHandlerGenMapper.insertTbWorkHandlerGen(tbWorkHandlerGen);
    }

    /**
     * 修改代码生成
     * 
     * @param tbWorkHandlerGen 代码生成
     * @return 结果
     */
    @Override
    public int updateTbWorkHandlerGen(TbWorkHandlerGen tbWorkHandlerGen)
    {
        return tbWorkHandlerGenMapper.updateTbWorkHandlerGen(tbWorkHandlerGen);
    }

    /**
     * 批量删除代码生成
     * 
     * @param ids 需要删除的代码生成主键
     * @return 结果
     */
    @Override
    public int deleteTbWorkHandlerGenByIds(String[] ids)
    {
        return tbWorkHandlerGenMapper.deleteTbWorkHandlerGenByIds(ids);
    }

    /**
     * 删除代码生成信息
     * 
     * @param id 代码生成主键
     * @return 结果
     */
    @Override
    public int deleteTbWorkHandlerGenById(String id)
    {
        return tbWorkHandlerGenMapper.deleteTbWorkHandlerGenById(id);
    }
}
